<?php
/*********************************************************************************
 * Copyright (C) 2011-2013 X2Engine Inc. All Rights Reserved.
 * 
 * X2Engine Inc.
 * P.O. Box 66752
 * Scotts Valley, California 95067 USA
 * 
 * Company website: http://www.x2engine.com 
 * Community and support website: http://www.x2community.com 
 * 
 * X2Engine Inc. grants you a perpetual, non-exclusive, non-transferable license 
 * to install and use this Software for your internal business purposes.  
 * You shall not modify, distribute, license or sublicense the Software.
 * Title, ownership, and all intellectual property rights in the Software belong 
 * exclusively to X2Engine.
 * 
 * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EITHER 
 * EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF 
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
 ********************************************************************************/

$this->menu=array(array('label'=>'Dashboard','url'=>'admin'));

?>
<h2><center>Side Settings</center></h2>
<?php echo "<p><center>Below you will find a listing of the current settings for the sidebar in other portions of the site. To edit the order and display of these settings, please click on an entry name to edit its settings.</center></p>\n"; ?> <br />
<?php
$uid = Yii::app()->user->getId();
$attributes = Dashboard::attributeLabels();
$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'baseScriptUrl'=>Yii::app()->theme->getBaseUrl().'/css/gridview',
    'enableSorting'=>false,
    'columns'=>array(
        array(
            'name'=>$attributes['dispNAME'],
            'value'=>'CHtml::link($data->dispNAME,array("update", "id"=>$data->id))',
            'type'=>'raw'
        ),
        array(
           'name'=>$attributes['adminALLOWS'],
           'value'=>'(($data->adminALLOWS ? "Yes" : "No"))',
           'type'=>'raw'
        ),
        array(
            'name'=>$attributes['posPROF'],
            'value'=>'$data->posPROF',
            'type'=>'raw'
        ),
        array(
            'name'=>$attributes['userALLOWS'],
            'value'=>'(($data->userALLOWS ? "Yes" : "No"))',
            'type'=>'raw'
        )
    ),
));?>

